<%@page import="org.siscoh.controller.ControlePermissao"%>
<%@page import="org.siscoh.controller.Constants"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    request.setAttribute("minper", 1);
    
    if(!ControlePermissao.possuiPermissao(request, response))
    {
        %> <jsp:include flush="true" page="/403.html" />  <%
        return;
    }
%>
<html>
  <head>
    <title>Cadastro de Categoria</title>
  <!--
	-->
	<style type="text/css">
	@import url(cssForm/style_form.css);
	</style>
  </head>
  
<body bgcolor='gray'>

	  
<jsp:useBean class="org.siscoh.controller.Constants" id="constants" scope="page" />
<form name="" method="POST" action="Controlador?action=Cliente&cod=${constants.insertCliente}" onsubmit="">
  <!--<div style="border: 1px solid black; width: 120px; padding: 0px; margin: 0px; ">-->
<br>
<table id="todoform" cellspacing="5" rules="" border="0">
    <tr>
        <td colspan="2" bgcolor="">
            <div id="" align="center">Cadastro de Cliente</div>
        </td>
        <td></td>
    </tr>        
    <tr>
      <td>Nome:</td>
      <td><input name='nome' id='nome' type='text' size='50'></td>
    </tr>
    
    
    <tr>
      <td>Informações:</td>
      <td><textarea name='info' id='info' cols="50" rows="10" onkeypress=""></textarea></td>
    
    </tr>  
    <tr>
	 <td colspan="2">
  		<div align="center"><input class="" type="submit" value="Cadastrar" ></div>
  	</td>
   </tr> 
   </table>
  </form>
   <br />
   <div align="center">
    <c:if test="${param.status != null}">
        <c:if test="${param.status == 1}">
            <span id="status" class="success">Cliente cadastrado com sucesso!</span>
            <script>
                hideStatus();
            </script>
        </c:if>
        <c:if test="${param.status != 1}">
            <span id="status" class="error">Erro ao cadastrar o cliente!</span>
            <script>
                hideStatus();
            </script>
        </c:if>
    </c:if>
   </div>
  </body>
</html>	  
    
